package com.pig4cloud.pig.demo.Service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pig4cloud.pig.demo.feign.Entity.Collection;
import com.pig4cloud.pig.demo.feign.Entity.CollectionVO;
import com.pig4cloud.pig.demo.feign.vo.ArticleCollectionVO;

public interface CollectionService extends IService<Collection> {
    public int insert(Collection collection);

    public Collection findByUidAndAid(Long aid, Long uid);

    public CollectionVO getByUidAndAid(Long aid, Long uid);

    public CollectionVO updateCollectionById(Long aid, Long uid);

    /**
     * 分页查询收藏文章
     * @param page
     * @return
     */
    public IPage<ArticleCollectionVO> queryArticleCollectionVO(Page<?> page, Long id);
}
